import request from '@/utils/request'

// 车辆信息分页
export function getList(params) {
  return request({
    url: '/carInformation/list',
    method: 'POST',
    params
  })
}

// 车辆信息添加
export function addInformation(data) {
  return request({
    url: '/carInformation/add',
    method: 'POST',
    data
  })
}

// 查询单条
export function selectInformation(params) {
  return request({
    url: '/carInformation/load',
    method: 'POST',
    params
  })
}

// 删除车辆信息
export function deleteInformation(data) {
  return request({
    url: '/carInformation/delete',
    method: 'post',
    data
  })
}

// 修改单条车辆信息
export function updateInformation(data) {
  return request({
    url: '/carInformation/update',
    method: 'post',
    data
  })
}
